<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/foundation/foundation.min.css">
    <script src="/Public/jquery/jquery.min.js"></script>
    <script src="/Public/foundation/foundation.min.js"></script>
    <script src="/Public/foundation/modernizr.js"></script>
    <script src="/Public/jquery/plugin/cityselect/jquery.cityselect.js"></script>
    <!--<script src="/Public/jquery/plugin"></script>-->
    <link rel="stylesheet" href="http://static.runoob.com/assets/foundation-icons/foundation-icons.css">
</head>
<body>
<nav class="top-bar" data-topbar>
    <ul class="title-area">
        <li class="name">
            <h1><a href="#">后台管理</a></h1>
        </li>
    </ul>
    <section class="top-bar-section">
        <ul class="right">
                <li><a href="">欢迎<?php echo (session('name')); ?></a></li>
                <li><a href="<?php echo U('./Sys/Login/doLogout');?>">退出</a></li>
        </ul>

    </section>
</nav>
<div>
    <div class="small-2 columns">
        <?php if(is_array($locks)): $i = 0; $__LIST__ = $locks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><ul class="side-nav">
                <li><a href="http://127.0.0.1/index.php/<?php echo ($menu["url"]); ?>" target="<?php echo ($menu['target']==0?'_self':'_blank'); ?>"><?php echo ($menu["mname"]); ?></a></li>
            </ul><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div class="small-10 columns">
        
    <form action="<?php echo U(doAddStudent);?>" method="post" enctype="multipart/form-data">
        <fieldset class="medium-4 columns" >
            <legend>基本信息一</legend>
            <label>昵称
                <input type="text" name="nick">
            </label>
            <label>
                姓名<input type="text" name="sname">
            </label>
            <label>年龄
                <input type="text" name="age">
            </label>
            <label>性别
                <select name="sex">
                    <?php if(is_array($sex)): $i = 0; $__LIST__ = $sex;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option name="sex" value="<?php echo ($v["dict_id"]); ?>"><?php echo ($v["val"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </label>
            <label>密码
                <input type="password" name="pwd">
            </label>
            <label>身份证
                <input type="text" name="id_card">
            </label>
            <label>邮箱
                <input type="email" name="email">
            </label>
            <label>QQ
                <input type="text" name="qq">
            </label>
            <label id="city">家庭住址
                <select name="home_prov"  class="prov"></select>
                <select name="home_city"  class="city"></select>
                <select name="home_dist"  class="dist"></select>
                <input type="text" name="home_home">
            </label>
            <label id="city1">居住地址
                <select name="live_prov"  class="prov"><option value=""></option></select>
                <select name="live_city"  class="city"><option value=""></option></select>
                <select name="live_dist"  class="dist"><option value=""></option></select>
                <input type="text" name="live_home">
            </label>
            <button class="button tiny">别忘填写右边信息</button>
        </fieldset>
        <fieldset class="medium-4 columns" style="margin-right:20%" >
            <legend>技能情况和其他</legend>
            <label>手机
                <input type="text" name="mtel">
            </label>
            <label>备用手机
                <input type="text" name="btel">
            </label>
            <label>家庭固话
                <input type="text" name="ftel">
            </label>
            <label>毕业院校
                <input type="text" name="school">
            </label>
            <label>毕业年月
                <input type="text" name="leave_time">
            </label>
            <label>学历
                <select name="education">
                    <?php if(is_array($education)): $i = 0; $__LIST__ = $education;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option name="education" value="<?php echo ($v["dict_id"]); ?>"><?php echo ($v["val"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                </select>


            </label>
            <label>专业
                <input type="text" name="major">
            </label>
            <label >学期
                <input type="text" name="term_no">
            </label>
            <label>上传头像
                <input type="file" name="file">
            </label>
            <label>是否接触过编程
                <input type="text" name="know_program">
            </label>
            <label>学习途径
                <input type="text" name="learn_way">
            </label>
            <label>是否尝试过学习PHP
                <input type="text" name="try_php">
            </label>
            <label>学习时长
                <input type="text" name="learn_time">
            </label>
            <input type="submit" value="提交" class="button tiny">
        </fieldset>
    </form>
    <script>
        $("#city").citySelect()
        $("#city1").citySelect();
    </script>

    </div>
</div>
</body>
</html>